#!/dis/sh
if {~ $#* 0} {
	ls /lib/do/*/deduce | sed 's,^/lib/do/,deduce ,;s,/deduce$, ,'
	exit
}
if {~ $#* 1} {
	if {! ftest -x /lib/do/$1/deduce} {
		ls /lib/do/*/deduce | sed 's,^/lib/do/,deduce ,;s,/deduce$, ,'
	} {
		catdo | grep '\('^$1^' '
	}
	exit
}
(namespace targets) = $*
deduce = /lib/do/$namespace/deduce
$deduce $targets
